home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 732 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: winternet.com!not-for-mail
  2. From: jdege@winternet.com (Jeff Dege)
  3. Newsgroups: comp.lang.eiffel,comp.lang.ada,comp.edu,comp.lang.c,comp.lang.c++,comp.lang.modula2,comp.lang.modula3
  4. Subject: Re: Hungarian notation
  5. Followup-To: comp.lang.eiffel,comp.lang.ada,comp.edu,comp.lang.c,comp.lang.c++,comp.lang.modula2,comp.lang.modula3
  6. Date: 6 Jan 1996 18:00:35 GMT
  7. Organization: StarNet Communications, Inc
  8. Distribution: world
  9. Message-ID: <4cmdc3$qhb@blackice.winternet.com>
  10. References: <30C40F77.53B5@swsbbs.com> <4behis$3cl@dux.dundee.ac.uk>
  11. NNTP-Posting-Host: klondike.winternet.com
  12. X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
  13.  
  14. On 06 Jan 1996 10:39:00 +0100, Joachim Durchholz (jhd@herold.franken.de) wrote:
  15. : andy@wndrwrks.demon.co.uk wrote 05.01.96 on Re: Hungarian notation:
  16. : >
  17. : >         someProc(MyString)
  18. : >         someProc(pszMyString)
  19. : This example does not occur in real life. Or rather, it better should not!
  20. : Anybody using meaningless names like "MyString" should be thrown out of  
  21. : the programming business. Depending on the actual semantics of "someProc",  
  22. : the parameter should be called "Message" or "Options" or "ParserInput" or  
  23. : whatever.
  24.  
  25.    Not necessarily.  True, there are application functions that deal with
  26. application objects, but there are also utility functions that deal with
  27. generic objects.  Consider:
  28.  
  29.     void stripTrailingWhiteSpace(string &aString);
  30.  
  31. -- 
  32.     Nearly every electrical engineer believes deep in his heart that he
  33. is better at writing computer software than any computer programmer,
  34. and can show as proof the fact that he has written a number of small
  35. applications, each of which was done quickly, easily, and exactly met
  36. his needs.
  37.  
  38.